//---------------------------------------------------------------------------

#ifndef uOptionsH
#define uOptionsH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxGraphics.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxTreeView.hpp"
#include <ComCtrls.hpp>
#include <ImgList.hpp>
#include <Buttons.hpp>
#include "cxListView.hpp"
#include "Main.h"
#include "uEditAccounts.h"
#include "cxEdit.hpp"
#include "cxGroupBox.hpp"
//---------------------------------------------------------------------------
class TfrOptions : public TForm
{
__published:	// IDE-managed Components
	TPanel *pnlButton;
	TPanel *pnlMain;
	TPanel *pnlHeader;
	TPanel *pnlGeneral;
	TPanel *pnlConnection;
	TPanel *pnlMailClient;
	TcxTreeView *tvChooseOptions;
	TButton *btnOK;
	TButton *btnCancel;
	TLabel *lbl1;
	TPanel *pnlAccounts;
	TLabel *lbl3;
	TLabel *lbl5;
	TImageList *ilOptions;
	TcxListView *lstAccounts;
	TPanel *pnlAccButton;
	TBitBtn *btnAddAccounts;
	TBitBtn *btnSetAccount;
	TBitBtn *btnDelAccount;
	TLabel *lbl9;
	TEdit *edtMailFolder;
	TSpeedButton *btnSelectFolder;
	TLabel *lbl10;
	TEdit *edtOrgName;
	TcxGroupBox *grpConnectOptions;
	TLabel *lbl2;
	TLabel *lbl4;
	TLabel *lbl6;
	TLabel *lbl7;
	TLabel *lbl8;
	TEdit *edtServerName;
	TEdit *edtServerPort;
	TEdit *edtDBFile;
	TEdit *edtUserName;
	TEdit *edtPassword;
	TcxGroupBox *grbRekvizit;
	TLabel *lbl11;
	TLabel *lbl12;
	TLabel *lbl13;
	TLabel *lbl14;
	TLabel *lbl15;
	TEdit *edtAdres;
	TEdit *edtBankID;
	TEdit *edtUNP;
	TEdit *edtRSchet;
	TEdit *edtBankName;
	TcxGroupBox *grbERIP;
	TLabel *lbl16;
	TLabel *lbl17;
	TEdit *edtMessageVersion;
	TEdit *edtServiceCode;
	TLabel *lbl18;
	TEdit *edtInvoiceCode;
	void __fastcall tvChooseOptionsChanging(TObject *Sender, TTreeNode *Node,
          bool &AllowChange);
	void __fastcall btnAddAccountsClick(TObject *Sender);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall lstAccountsSelectItem(TObject *Sender, TListItem *Item,
          bool Selected);
	void __fastcall btnSetAccountClick(TObject *Sender);
	void __fastcall FormKeyPress(TObject *Sender, char &Key);
	void __fastcall btnSelectFolderClick(TObject *Sender);
private:	// User declarations
	void __fastcall SetVisiblePanels(AnsiString PanelName);
	void __fastcall GetAccounts();
	void __fastcall SetEnabledAccountsButtons(bool Enabled);
public:		// User declarations
	__fastcall TfrOptions(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrOptions *frOptions;
//---------------------------------------------------------------------------
#endif
